﻿@model Wlog.Web.Models.LocalPasswordModel.Password

<h3>Change Password</h3>

@using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary()

    <div class="form-horizontal">
        <div class="form-group">
            <label class="col-lg-3 control-label">
                @Html.LabelFor(m => m.OldPassword)
            </label>
            <div class="col-lg-9">
                @Html.EditorFor(model => model.OldPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-3 control-label">
                @Html.LabelFor(m => m.NewPassword)
            </label>
            <div class="col-lg-9">
                @Html.EditorFor(model => model.NewPassword, new { @class = "form-control" })
            </div>
        </div>
        <div class="form-group">
            <label class="col-lg-3 control-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </label>
            <div class="col-lg-9">
                @Html.EditorFor(model => model.ConfirmPassword, new { @class = "form-control" })
            </div>
        </div>
    </div>
    <p>
        @Html.ActionLink("Back", "Index", "Private", null, new { @class = "btn btn-success" })
        <input type="submit" value="Change password" class="btn btn-warning" />
    </p>
}
